package com.aat.dxfy.disconf.config;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

import com.baidu.disconf.client.common.annotations.DisconfFile;
import com.baidu.disconf.client.common.annotations.DisconfFileItem;

@Component
@Scope("singleton")
@DisconfFile(filename = "redis.properties")
public class RedisConfig {
	// 代表连接地址
	private String host;
	// 代表连接port
	private int port;
	
	@DisconfFileItem(name = "redis.host")
	public String getHost() {
		return host;
	}

	public void setHost(String host) {
		this.host = host;
	}
	
	@DisconfFileItem(name = "redis.port")
	public int getPort() {
		return port;
	}

	public void setPort(int port) {
		this.port = port;
	}
	
	
}
